# coding:utf8
import urllib.request

class HtmlDownloader(object):
	"""docstring for HtmlDownloader"""
	def __init__(self):
		print("HtmlDownloader...")

	def download(self, url):
		if url is None:
			return None
		respnese = urllib.request.urlopen(url)
		if respnese.getcode() != 200:
			return None

		return respnese.read()
